package evaluatetask

import (
	dbModel "ZHONGYIHANGYAN/bean/dbModel"
	"ZHONGYIHANGYAN/mysql"
)

type EvaluateTaskManage struct {
	mysql.DataBase
}

var defaultEvaluateTaskManage = &EvaluateTaskManage{}

func Manage() *EvaluateTaskManage {
	return defaultEvaluateTaskManage
}

// 初始化指标表
func InitTable(DB *mysql.MysqlGorm) {
	defaultEvaluateTaskManage.DataBase = DB
	defaultEvaluateTaskManage.autoMigrate()
}

func (m *EvaluateTaskManage) autoMigrate() {
	m.DataBase.AutoMigrate(&dbModel.EvaluateTask{})
}
